function(doc){
	if(doc.doctype == 'product'){
		doc.properties.forEach(function(prop){
			emit([doc.leafcategorycode, prop.propertycode, prop.propertyvaluecode], 1);
		});
	}
}